package com.deep.spring.v5;

import javax.validation.Constraint;
import javax.validation.Payload;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.lang.annotation.*;

@NotBlank
@NotNull
@Email(message = "邮箱格式有误")
@Constraint(validatedBy = {})
@Documented
@Target({ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
public @interface CusEmail {

    String message() default "邮箱校验错误";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
